package cn.jiyun.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods_list")
@ApiModel(value="GoodsList对象", description="")
public class GoodsList implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    private String item;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "打包费")
    private BigDecimal packingfee;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "月售")
    private Integer monthlysales;

    @ApiModelProperty(value = "所属店铺")
    private String shop;

    @ApiModelProperty(value = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime submissiontime;

    @ApiModelProperty(value = "审核状态（0：待审核 1：审核中 2：审核通过 3：审核拒绝）")
    private Integer reviewstatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "审核人")
    private String reviewer;

    @ApiModelProperty(value = "商品下架原因（0：售罄下架 1：过期下架 2：手动下架 3：从未上架 4：在售中）")
    private Integer goodstatus;

    @ApiModelProperty(value = "拒绝原因")
    private String reasonsforrejection;

    @ApiModelProperty(value = "补充说明")
    private String supplementaryexplanation;

    @ApiModelProperty(value = "商品类型")
    private String goodtype;

    @ApiModelProperty(value = "商品描述")
    private String gooddescribe;

    @ApiModelProperty(value = "主料")
    private String mainingredient;

    @ApiModelProperty(value = "制作时长")
    private String makeTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "过期日期")
    private LocalDate expirationDate;

    @ApiModelProperty(value = "图片")
    private String goodsimage;

    @ApiModelProperty(value = "是否现时开售")
    private String isTimeLimitedSale;

    @ApiModelProperty(value = "早上开售时间")
    private LocalTime dailySaleStartTimeAm;

    @ApiModelProperty(value = "下午结束时间")
    private LocalTime dailySaleStartTimePm;

    @ApiModelProperty(value = "是否限量供应")
    private String isLimitedSupply;

    @ApiModelProperty(value = "每日供应量")
    private Integer dailySupplyQuantity;

    @ApiModelProperty(value = "商品分类")
    private String Classification;

    @TableField(exist = false)
    private BigDecimal maxprice;

    @TableField(exist = false)
    private BigDecimal minprice;

    @TableField(exist = false)
    private Integer maxMonthlySales;

    @TableField(exist = false)
    private Integer minMonthlySales;

    @TableField(exist = false)
    private Integer ztime;

    @TableField(exist = false)
    private Boolean goodstatus2;
}
